<template>
  <view class="container">
    <view class="bgc">
      <image src="../../static/img/loginbgc.png" mode="aspectFill" style="width: 100%; height: 650rpx"></image>
    </view>
    <view style="width: 180rpx; height: 180rpx; background-color: #fff; position: absolute; top: 300rpx; left: 290rpx">
      <image src="../../static/img/logo.png" mode="aspectFill" class="logo"></image>
      <view style="font-size: 30rpx; font-family: PingFang SC, PingFang SC; font-weight: bold; color: #222222; text-align: center; margin-top: 20rpx">学霸到家</view>
    </view>
    <button class="login">授权登录</button>
    <view style="text-align: center; margin-top: 30rpx">
      <label class="radio">
        <radio value="checked" :checked="checked" color="#3553E8" style="transform: scale(0.7)" @click="checked = !checked" />
        <text style="font-size: 24rpx; font-family: PingFang SC, PingFang SC; font-weight: 500; color: #666666">
          我已阅读并同意
          <text @click="gofuwu">《用户服务协议》</text>
          和
          <text @click="goyinsi">《隐私协议》</text>
        </text>
      </label>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      checked: true
    };
  },
  methods: {
    gofuwu() {
      console.log('跳转到用户服务');
    },
    goyinsi() {
      console.log('跳转到隐私协议');
    }
  }
};
</script>

<style lang="scss" scoped>
.container {
  box-sizing: border-box;
  .logo {
    width: 180rpx;
    height: 180rpx;
  }
  .login {
    box-sizing: border-box;
    width: 690rpx;
    height: 100rpx;
    text-align: center;
    line-height: 100rpx;
    color: #fff;
    margin: 0 30rpx;
    background: #3553e8;
    font-family: PingFang SC, PingFang SC;
    font-weight: 500;
    font-size: 30rpx;
    border-radius: 100rpx 100rpx 100rpx 100rpx;
    padding: 0 !important;
  }
}
</style>
